package com.xiaowei.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaowei.system.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author xiaoge
 * @since 2021-09-19
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * @param page
     * @param wrapper
     * @return
     */
    IPage<User> findUserPage(@Param("page") Page<User> page, @Param(Constants.WRAPPER) QueryWrapper<User> wrapper);
}
